Counting Sort (Simple Version) Demo
Offset by min
Offset by min:
If unchecked, min is treated as 0 (the simple version of the algorithm).
If checked, the Count array indices will be shifted by the minimum input value (more space-efficient version).
Size:
Random Array
Create Array
Previous
Next
Play
Speed:
1x
2x
4x
Min:
Max:
Press "Next" to begin.
Input Array:
↑
Count Array:
Count
Index
Value
Output Array: